import { TENANT } from './api'
import { METHOD, request } from '@/utils/request'

export async function tenantDetail(id) {
  return request(TENANT + '/queryOne', METHOD.GET, { id: id })
}

export async function tenantPage(data) {
  return request(TENANT + '/page', METHOD.POST, data)
}

export async function saveOrUpdateTenant(data) {
  return request(TENANT + '/saveOrUpdate', METHOD.POST, data)
}

export default { tenantDetail, tenantPage, saveOrUpdateTenant }